﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MuseLibrary
{
    public class Channels
    {
        public Channels()
        {
            _channel1 = new int[16];
            _channel2 = new int[16];
            _channel3 = new int[16];
            _channel4 = new int[16];
        }

        private readonly int[] _channel1;
        private readonly int[] _channel2;
        private readonly int[] _channel3;
        private readonly int[] _channel4;

        public int[] this[int index]
        {
            get
            {
                switch (index)
                {
                    case 0:
                        return _channel1;
                    case 1:
                        return _channel2;
                    case 2:
                        return _channel3;
                    case 3:
                        return _channel4;
                    default:
                        throw new ArgumentOutOfRangeException("Channel index is out of range");
                }
            }
        }
    }
}
